using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
using System.Configuration;
using Himall.Core;

namespace Himall.Entity
{
    public partial class GiftOrderInfo
    {
        [NotMapped]
        public string UserName { get; set; }
        
        /// <summary>
        /// 显示订单状态
        /// </summary>
        [NotMapped]
        public string ShowOrderStatus
        {
            get
            {
                return this.OrderStatus.ToDescription();
            }
        }
        /// <summary>
        /// 物流公司名称显示
        /// </summary>
        [NotMapped]
        public string ShowExpressCompanyName
        {
            get
            {
                string result = this.ExpressCompanyName;
                if (result == "-1")
                {
                    result = "其他";
                }
                return result;
            }
        }
    }
}
